package main

import (
	"fmt"
	"log"
	"net/http"
	"net/url"
)

func OutPut(w http.ResponseWriter, r *http.Request) {
	_ = r.ParseForm()

	res, _ := url.ParseQuery(r.Form.Get("log"))
	for k := range res {
		fmt.Println(k)
	}

	//_, _ = w.Write([]byte("hello go"))
}

func main() {
	fmt.Println("开始我的http服务器之旅~")

	http.HandleFunc("/", OutPut)

	err := http.ListenAndServe(":9090", nil)

	if err != nil {
		log.Fatal("ListenAndServe?=", err)
	}
}
